package cn.com.simple.learning.designpattern.structure.proxy;

/**
 * @author Jianxing.Jia
 * @date 2022/2/10
 * @description 描述信息
 */
public class ImageServiceImplProxy implements ImageService {

    private final ImageService imageService;

    public ImageServiceImplProxy(ImageService imageService) {
        this.imageService = imageService;
    }

    @Override
    public void show() {
        System.out.println("展示图片前要做的事情,,,");
        imageService.show();
        System.out.println("展示图片后要做的事情,,,");
    }
}
